#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2020-08-28 13:06:45
# @Author  : Zuo Zhongfei (zuozhongfei@126.com)
# @Link    : www
# @Version : $Id$

import os


class AnonymousSurvey():
    """收集匿名调查问卷的答案"""

    def __init__(self, question):
        super(AnonymousSurvey, self).__init__()
        # 存储一个问题
        self.question = question
        # 答案列表属性
        self.responses = []

    def show_question(self):
        """显示调查问卷"""
        print(self.question)

    def store_response(self, new_respinse):
        """存储单份调查问卷"""
        self.responses.append(new_respinse)

    def shos_results(self):
        """显示收到的所有答案"""
        print("Survey results:")
        for response in self.responses:
            print('- ' + response)
